#!/bin/sh

rp=$(pwd)
sed -i -e "s#PATH=\$PATH#PATH=\$PATH:$rp#g" ~/.bash_profile
source ~/.bash_profile
# normally, '$' is the delimeter in the search/replaces lines, here we use '#'
# to be the delimeter.
# ref: http://stackoverflow.com/questions/16790793/how-to-replace-strings-containing-slashes-with-sed